Skip to content

Conversation

@KotikovAlexander
Copy link
Collaborator

@KotikovAlexander KotikovAlexander commented Feb 5, 2026

What's new:

  • Внесены архитектурные и значительные изменения в кодовой базе
  • Исправлены ошибки соединения с AD
  • Добавлены новые атрибуты ideco
  • Добавлены новые атрибуты вендора Cisco
  • Реализована возможность перечисления LDAP групп при недоступности API в блоке ldapServer
  • Удален неактуальный функционал
  • Актуализирована работа с конфигурацией

@KotikovAlexander KotikovAlexander marked this pull request as ready for review February 5, 2026 09:03
services.AddSingleton(appVars);
}

private static void AddLdapBindNameFormation(IServiceCollection services)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю эти вещи раскидать по модулям, чтобы сделать честными фичами и избавиться от DI hell


namespace Multifactor.Radius.Adapter.v2.Application.Features.Ldap.Ports;

public interface ILdapAdapter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это не порт, а толстый неудобный интерфейс. А еще в папке Features/Ldap не нашел собственно фичи. Есть только этот интерфейс имодели

@@ -0,0 +1,45 @@
namespace Multifactor.Radius.Adapter.v2.Infrastructure.Adapters.Multifactor.Http;

public class ActivityContext
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

по хорошему стоит от него отказаться в пользу OpenTelemtry

{
contentBytes = RadiusPasswordProtector.Encrypt(sharedSecret, authenticator, contentBytes);
}
else if (attributeDefinition.Code == 80) // Message-Authenticator
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

то же самое

private readonly IRadiusDictionary _radiusDictionary;
private readonly ILogger<RadiusAttributeParser> _logger;
const int VendorSpecific = 26;
const int MessageAuthenticator = 80;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

снова те же константы

var content = ParseContentBytes(
vendorContentBytes,
vendorAttribute.Type,
26,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

magic number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants